package _10_1;

import java.text.NumberFormat;
import java.text.ParseException;
import java.util.Locale;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Double sum = 0D;
		NumberFormat nf = NumberFormat.getInstance(Locale.US);
		Scanner scn = new Scanner(System.in);
		
		try {
			System.out.print("Enter the first number: ");
			sum += (Double) nf.parse(scn.next());
			
			System.out.print("Enter the second number: ");
			sum += (Double) nf.parse(scn.next());
			
			System.out.println("sum = " + sum);
		} catch (ParseException e) {
			e.printStackTrace();
			System.exit(1);
		}
	}
}
